import prisma from "./index.js";


//添加讨论
export async function addDiscuss(userid, content) {
    const userId = Number(userid)
    return prisma.discuss.create({
        data: {
            content,
            userId
        }
    })
}

//历史消息
export async function getAlldiscuss() {
    return prisma.discuss.findMany()
}